package org.scboy.rbac.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import org.scboy.rbac.api.OrgManager;
import org.scboy.rbac.cache.OrgCache;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class OrgManagerImpl implements OrgManager {

	
	@Autowired
	OrgCache cache;
	
	@Override
	public String getOrgName(String id) {
		return cache.getOrgName(id);
	}

	@Override
	public String getOrgLocation(String id) {
		return cache.getOrgLocation(id);
	}

	@Override
	public String getOrgShortName(String id) {
		return cache.getOrgShortName(id);
	}

}
